package com.example.demo.demo;

import lombok.Data;

import java.util.Objects;

/**
 * aliexpress车型库(汽配)属性表字段名数据VO
 * @author gaoliangyou
 * @since 2020/1/16 17:26
 */
@Data
public class PlsAliexpressAutoAttrImportDTO {

    /**
    * attr_name属性名id
    */
    private Long attrNameId;
    /**
    * attr_name英文名称
    */
    private String attrName;
    /**
    * attr_value属性值id
    */
    private Long attrValueId;
    /**
    * attr_value英文名称
    */
    private String attrValue;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PlsAliexpressAutoAttrImportDTO that = (PlsAliexpressAutoAttrImportDTO) o;
        return attrNameId.equals(that.attrNameId) &&
                attrValueId.equals(that.attrValueId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(attrNameId, attrValueId);
    }
}